<?php
/**
 * AD Minnesota configuration
 *
 * This file is where all the configuration settings
 * for Minnesota are stored. All items are clearly labeled.
 * @package Configuration
 */

/**
 * Define RETS URL
 */
define('AD_RETS_URL', 'http://matrixrets2.northstarmls.com/rets/login.ashx');

/**
 * Define RETS user agent.
 */
define('AD_RETS_USER_AGENT', 'LV_AGENT_RETS');

/**
 * Define RETS version number.
 */
define('AD_RETS_VERSION', 'RETS/1.5');

/**
 * Define RETS default search value.
 */
define('AD_RETS_SEARCH', '(()');

/**
 * Define RETS search class name.
 */
define('AD_RETS_SEARCH_CLASS',	'RES');

/**
 * Define RETS maximum search limit.
 */
define('AD_RETS_SEARCH_LIMIT',	200);

/**
 * Define RETS default value for all fields.
 */
define('AD_RETS_ALL_FLDS',	'');

$DISABLED_SEARCH_FORM_FIELDS = array(
);

$MAP_QUERY_PREFIX = array(
	 'bath_rooms'					=> ''
	,'bed_rooms'					=> ''
	,'city'							=> ''
	,'exterior'						=> ''
	,'garage'						=> ''
	,'listing_date'					=> ''
	,'listing_price'				=> ''
	,'school_district'				=> ''
	,'selling_date'					=> ''
	,'selling_price'				=> ''
	,'sqft_above_ground'			=> ''
	,'status'						=> ''
	,'street_name'					=> '*'
	,'style'						=> ''
	,'sub_division'					=> ''
	,'year_built'					=> ''
	,'zip'							=> ''
);

$MAP_QUERY_SUFFIX = array(
	 'bath_rooms'					=> ''
	,'bed_rooms'					=> ''
	,'city'							=> ''
	,'exterior'						=> ''
	,'garage'						=> ''
	,'listing_date'					=> '+'
	,'listing_price'				=> ''
	,'school_district'				=> ''
	,'selling_date'					=> '+'
	,'selling_price'				=> ''
	,'sqft_above_ground'			=> ''
	,'status'						=> ''
	,'street_name'					=> '*'
	,'style'						=> ''
	,'sub_division'					=> ''
	,'year_built'					=> ''
	,'zip'							=> ''
);

$MAP_LOOKUP_FLD_NAME = array(
	 'list_city'					=> 'postalcities'
	,'list_exterior'				=> 'exteriorres'
	,'list_school_district'			=> 'schooldistrictres'
	,'list_status'					=> 'liststatusres'
	,'list_style'					=> 'styleres'
//	,'list_basement'				=> 'basementres'
//	,'qry_basements'				=> 'basementres'
);

$MAP_RESULT_STD_NAME = array(
	 'ad_img_id'					=> 'UID'

	,'acres'						=> 'acres'
	,'annual_assessment'			=> 'taxwithass'
	,'apn'							=> 'pid'
	,'appliances'					=> 'appliances'
	,'area'							=> 'area'
	,'basement'						=> 'basement'
	,'basement_feat'				=> 'sqftbelowground' //TODO when data is correct replace it
	,'bath_rooms'					=> 'bathstotal'
	,'bed_rooms'					=> 'bedrooms'
	,'bedroom_2_area'				=> 'bed2dim'
	,'bedroom_3_area'				=> 'bed3dim'
	,'bedroom_4_area'				=> 'bed4dim'
	,'bedroom_5_area'				=> 'bed5dim'
	,'city'							=> 'postalcity'
	,'comments'						=> 'publicremarks'
//	,'construction'					=> 'exterior'
	,'cooling'						=> 'coolingdescription'
	,'county'						=> 'county'
	,'dining_room_area'				=> 'rdindim'
	,'directions'					=> 'directions'
	,'exterior'						=> 'exterior'
	,'fireplaces'					=> 'fireplacen'
	,'full_bathrooms'				=> 'bathsfull'
	,'garage'						=> 'parkinggarage'
	,'garage_description'			=> 'garagedescription'
	,'half_bathrooms'				=> 'bathshalf'
	,'heating'						=> 'heatingdescription'
	,'img_id'						=> 'UID'
	,'kitchen_area'					=> 'rkitchdim'
	,'last_modified_date_time'		=> 'modificationtimestamp'
	,'latitude'						=> 'latitude'
	,'listing_agent_first_name'		=> 'agentlist'
//	,'listing_agent_last_name'		=> ''
	,'listing_date'					=> 'listdate'
	,'listing_office_name'			=> 'officelist'
	,'listing_price'				=> 'listprice'
	,'longitude'					=> 'longitude'
	,'lot_dimension'				=> 'lotsizedimensions'
	,'master_bedroom_area'			=> 'bed1dim'
	,'ml_number'					=> 'mlnumber'
	,'other_buildings'				=> 'outbuildings'
	,'picture_count'				=> 'photocount'
	,'picture_modified_date_time'	=> 'picturemodificationtimestamp'
	,'property_type'				=> 'proptype'
	,'school_district'				=> 'schooldistrictnumber'
	,'selling_agent_first_name'		=> 'agentsell'
//	,'selling_agent_last_name'		=> ''
	,'selling_date'					=> 'salesclosedate'
	,'selling_price'				=> 'salescloseprice'
	,'sewer'						=> 'sewer'
	,'sqft_above_ground'			=> 'sqftaboveground'
	,'sqft_below_ground'			=> 'sqftbelowground'
	,'state'						=> 'stateorprovince'
	,'status'						=> 'status'
	,'status_date'					=> 'statusdate'
	,'street_direction'				=> 'streetdirprefix'
	,'street_name'					=> 'streetname'
	,'street_number'				=> 'streetnumber'
	,'street_post_direction'		=> 'streetdirsuffix'
	,'street_suffix'				=> 'streetsuffix'
	,'style'						=> 'style'
	,'sub_division'					=> 'subdivision'
	,'three_quarter_bathrooms'		=> 'bathsthree'
	,'unit_number'					=> 'unitnumber'
	,'view'							=> 'lakewaterf'
	,'water'						=> 'water'
	,'year_built'					=> 'yearbuilt'
	,'zip'							=> 'postalcode'
	,'zoning'						=> 'zoning'
);
